home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 June: System Software / Dev.CD Jun 97 SSW.toast / What's New? / Sample Code / Toolbox / FinderDragPro / DragManagerAdditions.h < prev    next >
Encoding:
Text File  |  1997-04-23  |  1.5 KB  |  69 lines  |  [TEXT/CWIE]

  1.     //
  2.     //    LEGAL NOTICE
  3.     //    ============
  4.     //
  5.     //     You may incorporate this sample code into your applications
  6.     //     without restriction. This sample code has been provided "AS
  7.     //     IS" and the responsibility for its operation is 100% yours.
  8.     //     You are not permitted to redistribute the source as "Apple
  9.     //     sample code" after having made changes. If you're going to
  10.     //     re-distribute the source, we require that you make it clear
  11.     //     in the source that the code was descended from Apple sample
  12.     //     code, but that you've made changes.
  13.     //
  14.  
  15. #pragma once
  16.  
  17. #ifndef __DRAG__
  18. #    include <Drag.h>
  19. #endif
  20.  
  21. enum
  22. {
  23.     _DragDispatch = 0xABED
  24. };
  25.  
  26. enum
  27. {
  28.     gestaltDragMgrHasImageSupport = 3
  29. };
  30.  
  31. enum
  32. {
  33.     unsupportedForPlatformErr    = -1858,    // call is for PowerPC only
  34.     noSuitableDisplaysErr        = -1859,     // no displays support translucency
  35.     badImageRgnErr                = -1860,    // bad translucent image region
  36.     badImageErr                    = -1861        // bad translucent image PixMap
  37. };
  38.  
  39. typedef unsigned long DragImageFlags;
  40.  
  41. enum 
  42. {
  43.     dragStandardImage    = 0x00000000,
  44.     dragDarkImage        = 0x00000001,
  45.     dragDarkerImage        = 0x00000002,
  46.     dragOpaqueImage        = 0x00000003,
  47.     dragRegionAndImage    = 0x00000010
  48. };
  49.  
  50. #ifdef __cplusplus
  51. extern "C" {
  52. #endif
  53.  
  54. pascal OSErr SetDragImage (    DragReference    theDragRef,
  55.                             PixMapHandle    imagePixMap,
  56.                             RgnHandle        imageRgn,
  57.                             Point            imageOffsetPt,
  58.                             DragImageFlags    theImageFlags    )
  59.  
  60.     TWOWORDINLINE (0x7027, 0xABED);
  61.  
  62. pascal OSErr GetDragHiliteColor (WindowPtr window, RGBColor *color)
  63.  
  64.     TWOWORDINLINE (0x7026, 0xABED);
  65.  
  66. #ifdef __cplusplus
  67. }
  68. #endif
  69.